//
//  JJUserAccountModel.swift
//  JJSina
//
//  Created by mac on 2017/12/5.
//  Copyright © 2017年 xinyuan. All rights reserved.
//

import UIKit

class JJUserAccountModel: NSObject, NSCoding {
    // 用户授权的唯一票据
    var access_token: String?
    //
    var expires_in: Int = 0 {
        didSet {
            expires_Date = Date(timeIntervalSinceNow: TimeInterval(expires_in))
        }
    }
    
    var uid: String?
    // 用户昵称
    var screen_name: String?
    // 用户头像
    var avatar_large: String?
    
    // 过期日期
    var expires_Date: Date?
    
    override init() {
        super.init()
    }
    // 归档
    func encode(with aCoder: NSCoder) {
        self.yy_modelEncode(with: aCoder)
    }
    // 解档
    required init?(coder aDecoder: NSCoder) {
        super.init()
        self.yy_modelInit(with: aDecoder)
    }
    
}




